package org.example.xml;

import org.example.service.TransferService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestAspectAfterThrowing {
    public static void main(String[] args) {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("spring-aop-afterThrowing.xml");
        TransferService transferService = context.getBean("transferService", TransferService.class);
        transferService.transfer("A", "B", 0);
    }
}
